//
//  Player.h
//  PezMonkey
//
//  Created by Spence DiNicolantonio on 12/28/09.
//  Copyright 2009 Necrosoft. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "PMDemo.h"


@interface Player : PMDemo {
	// shared static body
	PMBody *staticBody;
	
	// player body and shape
	PMBody *player;
	PMCircleShape *playerShape;
	
	// current ground normal
	PMVect groundNormal;
	
	// indicates whether player is jumping
	BOOL jumping;
    
    // applause sound object
    NSSound *applause;
}

@property (nonatomic, retain) PMBody *staticBody;
@property (nonatomic, retain) PMBody *player;
@property (nonatomic, retain) PMCircleShape *playerShape;
@property (assign) PMVect groundNormal;
@property (nonatomic, retain) NSSound *applause;

- (void)addSegments;
- (void)addSpringboardWithLength:(PMFloat)sbLength stiffness:(PMFloat)stiffness damping:(PMFloat)damping atPoint:(PMVect)point;
- (void)addFlagAtPoint:(PMVect)point;
- (void)goalReached;

@end
